package br.unifor.mia.olio.xml.summary;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "driverSummary")
public class DriverSummary {

	private String name;

	private List<Operation> operations;
	private List<Operation> responseTimes;

	private List<Operation> delayTimes;

	@XmlAttribute(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@XmlElementWrapper(name = "mix")
	@XmlElement(name = "operation")
	public List<Operation> getOperations() {
		return operations;
	}

	public void setOperations(List<Operation> operations) {
		this.operations = operations;
	}

	@XmlElementWrapper(name = "responseTimes")
	@XmlElement(name = "operation")
	public List<Operation> getResponseTimes() {
		return responseTimes;
	}

	public void setResponseTimes(List<Operation> responseTimes) {
		this.responseTimes = responseTimes;
	}

	@XmlElementWrapper(name = "delayTimes")
	@XmlElement(name = "operation")
	public List<Operation> getDelayTimes() {
		return delayTimes;
	}

	public void setDelayTimes(List<Operation> delayTimes) {
		this.delayTimes = delayTimes;
	}
}
